import React, { FC } from "react";
import { QuestionTextareaType, QuestionTextareaDefaultValue } from "./type";
import { Typography, Input } from "antd";
const { Paragraph } = Typography;
const { TextArea } = Input;

const QuestionTextareaComponent: FC<QuestionTextareaType> = (props) => {
  const { title, placeholder } = { ...QuestionTextareaDefaultValue, ...props };
  return (
    <>
      <Paragraph strong>{title}</Paragraph>
      <div>
        <TextArea placeholder={placeholder} />
      </div>
    </>
  );
};

export default QuestionTextareaComponent;
